package main

import "fmt"

//数组
func main() {
	//定义一个数组
	var hens [6]float64

	hens[0] = 3.0
	hens[1] = 3.0
	hens[2] = 3.0
	hens[3] = 3.0
	hens[4] = 3.0
	hens[5] = 50.0

	totalWeight2 := 0.0
	for i := 0; i < len(hens); i++ {
		totalWeight2 += hens[i]
	}
	fmt.Println("totalWeight=", totalWeight2)

	var ints [3]int
	fmt.Println(ints)
}
